import 'package:flutter_shop/generated/json/base/json_convert_content.dart';
import 'package:flutter_shop/generated/json/base/json_filed.dart';

///商品详情实体
class GoodsDetailData with JsonConvert<GoodsDetailData> {
  GoodsDetailDataGoodInfo goodInfo;
  List<GoodsDetailDataGoodComments> goodComments;
  GoodsDetailDataAdvertesPicture advertesPicture;
}

class GoodsDetailDataGoodInfo with JsonConvert<GoodsDetailDataGoodInfo> {
  String image5;
  int amount;
  String image3;
  String image4;
  String goodsId;
  String isOnline;
  String image1;
  String image2;
  @JSONField(name: "TYPE_SHIP")
  int typeShip;
  String goodsSerialNumber;
  double oriPrice;
  double presentPrice;
  String comPic;
  int state;
  String shopId;
  String goodsName;
  String goodsDetail;
}

class GoodsDetailDataGoodComments with JsonConvert<GoodsDetailDataGoodComments> {
  @JSONField(name: "SCORE")
  int score;
  String comments;
  String userName;
  int discussTime;
}

class GoodsDetailDataAdvertesPicture with JsonConvert<GoodsDetailDataAdvertesPicture> {
  @JSONField(name: "PICTURE_ADDRESS")
  String pictureAddress;
  @JSONField(name: "TO_PLACE")
  String toPlace;
  int urlType;
}
